* htmlfontify.el: Add support for code block fontification
authorJambunathan K <kjambunathan@gmail.com>
Sat, 17 Mar 2012 14:03:54 +0000 (22:03 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 17 Mar 2012 14:03:54 +0000 (22:03 +0800)
commit9fa4d847cdbd8da6813ffe598898e780850eff3f
tree2727cff27af59fb23797ae2f01ea60c9cfc2c9e6
parentb509463b24128bd53148572dbaf961e86e014927
* htmlfontify.el: Add support for code block fontification
for ODT export.
(hfy-optimisations): Define new option
`body-text-only'
(hfy-fontify-buffer): Honor above setting.
(hfy-begin-span, hfy-end-span): New routines factored out form
`hfy-fontify-buffer'.
(hfy-begin-span-handler, hfy-end-span-handler): New variables
that permit insertion of custom tags.
(hfy-fontify-buffer): Use above handlers.
(hfy-face-to-css-default): Same as the earlier `hfy-face-to-css'.
(hfy-face-to-css): Re-defined to be a variable.
(hfy-compile-stylesheet): Modified.  Allow stylesheet to be built
over multiple runs. This is made possible by having the caller let
bind a special variable `hfy-user-sheet-assoc'.
(htmlfontify-string): New defun.
(hfy-compile-face-map): Make sure that the last char in the
buffer is correctly fontified.
(hfy-face-resolve-face): Whitespace only change.
lisp/ChangeLog
lisp/htmlfontify.el